Use correct path separator on windows
authorAlex Crichton <alex@alexcrichton.com>
Tue, 24 Jun 2014 13:54:37 +0000 (06:54 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 25 Jun 2014 18:09:39 +0000 (11:09 -0700)
src/cargo/util/process_builder.rs

index 1dc3ca4e6feae1dd0b299995ee2a11169fa32f04..e5fec4f1a5724d2a67c60806b63be21a3ebf8b20 100644 (file)
@@ -28,7 +28,10 @@ impl Show for ProcessBuilder {
 }
 
 // TODO: Upstream a Windows/Posix branch to Rust proper
+#[cfg(unix)]
 static PATH_SEP : &'static str = ":";
+#[cfg(windows)]
+static PATH_SEP : &'static str = ";";
 
 impl ProcessBuilder {
     pub fn arg<T: Str>(mut self, arg: T) -> ProcessBuilder {